gtkmain: Make grab-notify notifications more targeted
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Jun 2020 15:19:57 +0000 (17:19 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Jun 2020 18:35:23 +0000 (20:35 +0200)
commitddb3a4be3e7b993208a08bd72080bda3c53ff172
treeb8b2df81316a1e84bb8cfa533bb82a626a835949
parent994f32704bf9cd69d078e90e1d7db31ea5398537
gtkmain: Make grab-notify notifications more targeted

We only want to send grab-notify to widgets that might have been
interacting with devices via events. Instead of going through all
widgets in all toplevels, we have the window/pointer focus information,
so we can just traverse the widget stacks for every involved foci.
gtk/gtkmain.c
gtk/gtkwindow.c
gtk/gtkwindowprivate.h